// 引入vue和vuex
import Vue from 'vue';
import Vuex from 'vuex';

// 注册vuex
Vue.use(Vuex);

const store = new Vuex.Store({
  state: {
    currentCouponId: '',
  },
  mutations: {
    setCurrentCouponId(state, id) {
      state.currentCouponId = id;
    },
  },
  actions: {
  },
});

// 导出store实例
export default store;
